'use strict';
/**
 * 莫凡淘宝 2.0 后端 model mongodb
 */

const mfModel = require('./mfModel.js');

exports.find = async (ctx) => {
	return await mfModel.mfind(ctx,'test_taobao2',{});
};

exports.insertOne = async (ctx) => {
	const {
		data,
		cloud: {
			db
		}
	} = ctx;
	let pData = await db.collection('test_taobao2').insertOne(data);
	return pData;
};
